package com.retailcloud.thirdpartyservice.service.impl;

import com.retailcloud.thirdpartyservice.service.OcrService;
import com.retailcloud.thirdpartyservice.utils.AliOcrUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author wudi
 * @date 2024/11/5
 * @comment
 */
@Service
public class OcrServiceImpl implements OcrService {

    @Resource
    private AliOcrUtil aliOcrUtil;


    @Override
    public Map<String, String> getTxt(String url) {
        return aliOcrUtil.getTxt(url);
    }
}
